<div>
<form method="post" action="index.php?app=b2c&ctl=admin_member_add&act=to_add&" method="post">
  <div class="tableform">
    <div class="division">
      <table>
        <tr>
          <th ><{t}>会员手机号：<{/t}></th>
          <td><{input type="text" id='chongzhi' vtype='mobile' required="true" style="width:200px" name="mobile" }> </td>
        </tr>
        <tr>
          <th ><{t}>充值金额：<{/t}></th>
          <td><{input type="text"  vtype='number' required="true" style="width:200px" name="money"}></td>
          </tr>
      </table>
    <!-- <div > -->
    <hr style="height:1px;border:none;" />
      <table id='mess' >
      <tr>
        <th ><{t}>手机号：<{/t}></th>
        <td><{input type="text" id='mobile' readOnly="true" disabled="true" value ="" }> </td>
        <th ><{t}>登陆账号：<{/t}></th>
        <td><{input type="text"  id='DLname' readOnly="true" disabled="true" value ="" }></td>
      </tr>
      <tr>
        <th ><{t}>商城昵称：<{/t}></th>
        <td><{input type="text"  id='name' readOnly="true" disabled="true" value ="" }></td>
        <th ><{t}>真实姓名：<{/t}></th>
        <td><{input type="text"  id='remark' readOnly="true" disabled="true" value ="" }></td>
      </tr>
    </table>
    <!-- </div> -->
    </div>
    <div class="table-action" id="bb" style="margin-left:50%;margin-right:50%;">
      <{button type="submit" label=$___b2c="提交"|t:'b2c' }>
    </div>

  </div>
</form>
<!-- <div class="tableform">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="gridlist">
<col class="Coldate"></col>
<col class="Colamount"></col>
<col></col>
<col></col>
<col></col>
<col></col>
<col></col>
<col></col>
<col></col>
  <thead>
    <tr>
      <th><{t}>录入时间<{/t}></th>
      <th><{t}>操作员<{/t}></th>
      <th><{t}>用户手机<{/t}></th>
      <th><{t}>存入金额<{/t}></th>
      <th><{t}>管理备注<{/t}></th>
      <th><{t}>信用额度阈值<{/t}></th>
      <th><{t}>审核状态<{/t}></th>
      <th><{t}>审核人<{/t}></th>
      <th><{t}>审核时间<{/t}></th>
    </tr>
  </thead>
  <tbody>
  <{foreach from=$data item=adv}>
  <tr>
    <td><{$adv.mtime|cdate:SDATE_STIME}></td>
    <td><{$adv.operator_name}></td>
    <td><{$adv.member_name}></td>
    <td class="Colamount"><{if $adv.import_money > 0}><{$adv.import_money|cur}><{else}>-<{/if}></td>
    <td><{if $adv.message}><{$adv.message}><{else}>-<{/if}></td>
    <td><{if $adv.yuzhi}><{$adv.yuzhi|cur}><{else}>-<{/if}></td>
    <td><{if $adv.is_shenhe == 0}>未审核<{else}><{if $adv.is_shenhe == 1}>审核通过<{else}>审核拒绝<{/if}><{/if}></td>
    <td><{if $adv.who_shenhe}><{$adv.who_shenhe}><{else}>-<{/if}></td>
    <td><{if $adv.shenhetime}><{$adv.shenhetime|cdate:SDATE_STIME}><{else}>-<{/if}></td>
  </tr>
  <{/foreach}>
  </tbody>
</table>
<{$pager}>
</div> -->
</div>

<script>
(function(){
$('chongzhi').addEvent('change',function(e){
  var member_mess = $(this).value;
  new Request.HTML({
  	url:'index.php?app=b2c&ctl=admin_member_add&act=member_mess',
  	medthod:'post',
  	data:'member_mess='+member_mess,
    dataType: "json",
  	onSuccess:function(rr){
      var dd = rr[0].data;
      var mess = JSON.decode(dd);
      var mobile = mess.mobile;
      var DLname = mess.DLname;
      var remark = mess.remark;
      var name = mess.name;
      // document.getElementById("mess").style.display='inline';
      // document.getElementById("bb").style.display='inline';
      document.getElementById("mobile").value=mobile;
      document.getElementById("DLname").value=DLname;
      document.getElementById("remark").value=remark;
      document.getElementById("name").value=name;
    }
  }).send();

});
})();
</script>
